//
//  DKCore.h
//  DanaKreditLoan
//
//  Created by ZhengChengFeng on 2024/10/18.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import "MainTabBarController.h"
#import "LoginViewController.h"

NS_ASSUME_NONNULL_BEGIN

@interface DKCore : NSObject

singleton_interface(DKCore)

@property (nonatomic) MainTabBarController *mainTabbarController;

- (void)appFirstLaunch;

- (void)loadMainTabbarController;

@property (nonatomic) AlertTokenExpireView *tokenExpireAlertView;
@property (nonatomic) AlertView *netErrorAlertView;
@property (nonatomic) AlertDCView *wlAlertView;

/*
 locationManager
 */
@property (nonatomic) BOOL isNeedUploadLocation;
@property (nonatomic) CLLocationManager *locationManager;
@property (nonatomic) NSString *longitudeStr,*latitudeStr,*ISOcountryCodeStr,*countryStr,*localityStr,*subLocalityStr,*thoroughfareStr;


@end


@interface DKCore (HelperController)<CLLocationManagerDelegate>

- (void)loginController:(VoidBlock)finishBlock;

- (void)showTokenExpireAlert:(BOOL)isExpire;

- (void)showNetErrorAlertView;

- (void)jumpToControllerWithUrlString:(NSString *)urlStr;

- (void)initLocation;

- (void)jumpWLAlertView:(VoidBlock)block;


@end

NS_ASSUME_NONNULL_END
